package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;


@Data
@Accessors(chain = true)
@TableName("user")  //让对象与表名一一映射
public class User extends BasePojo{
    @TableId(type = IdType.AUTO)        //标识主键注解,主键自增
    private Integer id;
    //@TableField("username")  //如果属性与字段的名称一致（包含驼峰规则）
    private String username;
    private String password;
    private String phone;
    private String email;
    private Boolean status;
    //private Role role;  //定义role角色数据
}
